#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int fun(int x);
	int n = 0;
	printf("Please input a number(number>0):");
	scanf("%d", &n);
	printf("fun(%d)=%d\n", n, fun(n));
	return 0;
}

int fun(int x)
{
	int f;
	if (x == 1 || x == 0)
		f = 10;
	if (x > 1)
		f = fun(x - 1) + fun(x - 2) + 2;
	return (f);
}